# -*- coding: utf-8 -*-
import pygame
import Box2D as box2d
from settings import *
from random import random


def load_image(image):
    if type(image) is list:
        return map(load_image, image)
    elif type(image) is str: 
        return pygame.image.load(image).convert_alpha()
 
class PhysicObject(object):
    def addCollision(self, point, other):
        """Captures new collisions to be sorted out during update"""
        pass

    def sleeping( self):
        pass
   
    def isAllowSleep(self):
        """Indica si tiene permitido dormirse el objeto"""
        pass
       
    def draw( self, surface, offset_x=0, offset_y=0 ):
        """Draws object on a surface with given offsets"""
        pass          
